package com.ss.demo.springbootdemo.reflect;

import com.ss.demo.springbootdemo.entity.Person;

import java.lang.reflect.Method;

/**
 * 作者: MrZhangJR
 * 时间: 2021/11/8 13:50
 * 描述:
 */
public class ReflectMethod {
    public static void main(String[] args) {
        Class<Person> personClass = Person.class;
        Method[] methods = personClass.getMethods();
        for (Method method : methods) {
            String name = method.getName();
            System.out.println("name = " + name);
        }
    }
}
